package com.wonders.frame.core.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.util.Date;

@MappedSuperclass
public abstract class EntityTemplate extends IdEntityStr{
    //创建人
    @Column(name = "crt_user")
    private String crtUser;

    //创建时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Column(name = "crt_date")
    private Date crtDate;

    //更新人
    @Column(name = "upd_user")
    private String updUser;

    //更新时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Column(name = "upd_date")
    private Date updDate;

    public String getCrtUser() {
        return crtUser;
    }

    public void setCrtUser(String crtUser) {
        this.crtUser = crtUser;
    }

    public Date getCrtDate() {
        return crtDate;
    }

    public void setCrtDate(Date crtDate) {
        this.crtDate = crtDate;
    }

    public String getUpdUser() {
        return updUser;
    }

    public void setUpdUser(String updUser) {
        this.updUser = updUser;
    }

    public Date getUpdDate() {
        return updDate;
    }

    public void setUpdDate(Date updDate) {
        this.updDate = updDate;
    }
}
